﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AGameOfThrones.messages
{
    public class packet : message
    {
        stream.streamable data;
        public stream.streamable Data 
        { 
            get { return data; } 
            set { data = value; } 
        }

        public virtual void serialize(stream.stream in_Stream)
        {
            in_Stream.begin("packet")
                .serialize("data", ref data)
            .end();
        }
    }
}
